<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>15-立即执行函数</title>
  </head>

  <body>
    <script>
      //第一种写法

      // ;(function (x, y) {
      //   console.log(x + y)
      // })(1, 2)
      // ;(function (x, y) {
      //   console.log(x + y)
      // })(5, 7)

      //第二种写法

      // (function(x,y){console.log(x+y)}(1,3))
    </script>
  </body>
</html>
